<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="description" content="pear-admin-flask">
  <meta name="keyword" content="pear-admin-flask">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/layui/css/layui.css') }}"/>
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/css/main.css') }}"/>
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/css/load.css') }}"/>
  <style>
      .layui-nav .layui-this:after {
          display: none;
      }

      .layui-nav .layui-nav-bar {
          display: none;
      }
  </style>
  <title>易班登录</title>
</head>
<body style="background:#fff">
<!-- header -->
<div class="ew-header">
  <div class="ew-nav-group">
    <div class="nav-toggle"><i class="layui-icon layui-icon-more-vertical"></i></div>
    <ul class="layui-nav" lay-filter="ew-header-nav">
      {% if client_user %}
        <li class="layui-nav-item">
          <a href="{{url_for('user.get_user_info_index')}}">{{ client_user.realname }}</a>
        </li>
        <li class="layui-nav-item">
          <a href="{{url_for('user.user_logout')}}">注销</a>
        </li>
      {% else %}
        <li class="layui-nav-item">
          <a href="{{ url_for('user.user_login') }}">登录</a>
        </li>
        <li class="layui-nav-item">
          <a href="{{ url_for('user.user_register') }}" target="_blank">注册</a>
        </li>
      {% endif %}
    </ul>
  </div>
</div>
<!-- content -->
<div class="layui-container">
  <div class="layui-row" style="margin-top: 10%">
    <div class="layui-col-md6  layui-col-xs12">
      <div class="ew-banner-right">
        <img class="show" style="width: 50%;" style="margin-top: 0px!important;"
             src="{{ url_for('static', filename='/index/images/yiban.jpg') }}">
      </div>
    </div>
    <div class="layui-col-md6  layui-col-xs12">
      <form action="{{ url_for('user.yiban_login') }}" class="layui-form" style="width: 55%;" method="post">
        <div class="layui-form-item">
          <div class="title">YiBan</div>
        </div>
        <div class="layui-form-item">
          <input name="username" type="text" placeholder="账 户 :  " value="" hover class="layui-input"/>
        </div>
        <div class="layui-form-item">
          <input name="password" type="password" placeholder="密 码 :  " value="" hover class="layui-input"/>
        </div>
        <div class="layui-form-item">
          <input placeholder="验证码 : " name="captcha" hover class="code layui-input layui-input-inline"/>
          <img src="{{ url_for('passport.get_captcha') }}" class="codeImage" id="captchaImage"/>
        </div>
        <div class="layui-form-item">
            <input type="checkbox" name="remember-me" title="记住密码" lay-skin="primary">
        </div>
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-normal login" lay-submit lay-filter="login"
                  style="width: 100% !important;font-size: 16px !important;background-color:#00B0FF">
            登 入
          </button>
        </div>
      </form>
    </div>
  </div>
</div>

{% include 'admin/common/footer.html' %}
</body>
</html>

<style>
    .layui-form-item {
        margin-top: 20px !important;
    }

    .layui-input {
        height: 44px !important;
        line-height: 44px !important;
        padding-left: 15px !important;
        border-radius: 3px !important;
    }

    .layui-input:focus {
        box-shadow: 0px 0px 2px 1px #00B0FF !important;
    }

    .layui-form-danger:focus {
        box-shadow: 0px 0px 2px 1px #f56c6c !important;
    }

    .title {
        font-size: 30px !important;
        font-weight: 550 !important;
        color: orange !important;
        display: inline-block !important;
        height: 45px !important;
        line-height: 60px !important;
    }

    .code {
        float: left;
        margin-right: 13px;
        margin: 0px !important;
        border: #e6e6e6 1px solid;
        display: inline-block !important;
    }

    .codeImage {
        float: right;
        height: 42px;
        border: #e6e6e6 1px solid;
    }
    .yiban-login{
        width: 30px;
        height: 30px;
        margin-top: 10px;
        margin-left: 15%;
    }
</style>